import { RequestModel } from '../models/requestModel.js'

class StoreModel extends RequestModel{
  getStoreList(reqData){
    return this.requestPost({
      urlType: 'MARKETINGTK',
      url: 'store/v1/list',
      reqData: reqData,
      islogin: true
    })
  }
  getLocation(){
    return this.requestLocation()
  }
  _addFirstImageUrl({storeList,currentStore}){
    return new Promise((resolve,reject)=>{
      let imgList = currentStore.imgList;
      for (var i = 0; i < storeList[0].imgList.length; i++) {
        imgList.unshift(storeList[0].imgList[i]);
      }
      resolve(imgList)
    })
    
    
  }



}
export { StoreModel}






